/**
 * Project Name:九色鹿
 * File Name:ReqMessage.java
 * Package Name:com.fxp.project.jiuselu.web.business.v1.request.sms
 * Date:2021-09-12 3:48 下午
 * Copyright (c) 2021, Jason.Wang All Rights Reserved.
 */
package com.fxp.project.jiuselu.web.business.v1.request.sms;

import com.fxp.project.jiuselu.web.base.request.ReqBase;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * ClassName: ReqMessage<br/>
 * Function: 短信请求信息<br/>
 * Date: 2021-09-12 3:48 下午<br/>
 *
 * @author Jason.Wang
 * @version 1.0.0.0
 * @see
 * @since JDK 8
 */
@Data
public class ReqMessage extends ReqBase {
    /**
     * 当前发送短信类型
     */
    @NotNull(message = "请填写要发送短信类型")
    private Integer type;
    /**
     * 当前手机号码
     */
    @Length(min = 11, max = 11, message = "必须输入11位的手机号码")
    @NotBlank(message = "当前手机号码不能为空")
    @Pattern(regexp = "^[1][3,5,6,7,8,9][0-9]{9}$", message = "请输入正确的手机号码")
    private String mobile;

    /**
     * 0用户1代理
     */
    private Integer level;
}
